package com.yunyi.web.controller.sys;

import com.yunyi.common.core.domain.AjaxResult;
import com.yunyi.common.core.domain.model.LoginBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: SysUserLoginController
 * @Author: ZouLi
 * @Description: 用户登录控制器
 * @Date: 2023/8/18 15:35
 **/
@RestController
@Api(tags = "测试用户登录")
public class SysUserLoginController {

    @ApiOperation(value = "登录")
    @PostMapping("/testLogin")
    public AjaxResult testLogin(LoginBody loginBody) {
        return AjaxResult.success("登录成功！", loginBody);
    }
}
